package physics.component;

import java.awt.Color;
import java.awt.Graphics2D;
import physics.Simulation;


/**
 * This is a mass that does not move no matter what forces are applied.
 *
 * @author Kevin Gao, Connor Gordon
 *
 */
public class FixedMass extends Mass {

    /**
     * Constructor for a Fixed Mass.
     *
     * @param id The identifying number
     * @param x The initial x coordinate
     * @param y The initial y coordinate
     * @param mass The mass value
     */
    public FixedMass (final int id, final double x, final double y,
            final double mass) {
        super(id, x, y, mass);
    }

    @Override
    public void update (final Simulation canvas, final double dt) {
        // DO NOTHING
    }

    @Override
    protected final void determineColor (final Graphics2D pen) {
        pen.setColor(Color.DARK_GRAY);
    }

}
